package com.eagle.demo.controller;

import com.eagle.demo.bean.UserInfo;
import com.eagle.demo.service.DemoService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class TwoController {
	private DemoService demoService;

	public void edit(HttpServletRequest req, HttpServletResponse resp, String name){
		UserInfo userInfo = demoService.get(name);
		try {
			resp.getWriter().write(userInfo.getName());
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
